clear all
close all

k = load('../coil20_cluster_kmeans.mat');
n = load('../coil20_cluster_kmeansnmf_d40.mat');
s = load('../coil20_cluster_kmeanssvd_d40.mat');
%l = load('../att_class_linear.mat');
f = 'normalizedMutualInformation';
plot( cat(1,k.info.k), cat(1,k.info.(f)), '-r*', 'LineWidth', 2 ), hold on
plot( cat(1,s.info.k), cat(1,s.info.(f)), '-k*', 'LineWidth', 2 ), hold on
plot( cat(1,n.info.k), cat(1,n.info.(f)), '-bd', 'LineWidth', 2 )
%line(xlim, [1 1]*l.info.accuracy, 'Color', 'g')

legend('KMeans', 'SVD+Kmeans', 'DistNMF', 'Location', 'SouthEast');
xlabel('k')
ylabel('Normalized Mutual Information')
title('COIL-20 dataset');

print(gcf, '-depsc', '-tiff', '-r300', '../figures/coil20_cluster.eps');